package com.lipeng.service;

import com.lipeng.bean.Collect;
import com.lipeng.bean.Shop;
import com.lipeng.utils.AjaxResult;

import java.util.List;


/**
 * Created by dllo on 18/3/7.
 */
public interface ShopService {
    Shop selectShopById(Integer sid);
    List<Shop> selectAllShop();
    int insertShop(Shop shop);
    int updateShop(Shop shop);
    int deleteShopById(Integer sid);
    List<Shop> selectShopByName(String name);

    //API
    AjaxResult addCollect(Integer uid, Integer sid);
    AjaxResult delCollect(Integer uid,Integer sid);
    AjaxResult selectCollectByUid(Integer uid);
    AjaxResult addOrder(Integer uid,Integer sid,Integer count);
    AjaxResult payOrder(Integer oid);
    AjaxResult delOrder(Integer oid);
    List<Collect> findCollect(Integer sid,Integer uid);
}
